package STUDENT.TRINHQUANGXUANDUC.OPPS.RESGITER;

import java.util.Scanner;

public class Views {
	public static void main(String[] args) {
		UserOject objOject = new UserOject();
		Controllers rControllers = new Controllers();
		Scanner sc = new Scanner(System.in);
		System.out.println("Nhap ho ten:");
		objOject.setTen(sc.nextLine());
		sc = new Scanner(System.in);
		System.out.println("Nhap tuoi:");
		objOject.setTuoi(sc.nextInt());
		System.out.println("Chon gioi tinh: 0.Nu/1.Nam");
		objOject.setGioitinh(sc.nextInt());
		System.out.println("Tinh trang hon nhan cua ban: 1.Doc than/2.Ly hon");
		sc = new Scanner(System.in);
		objOject.setTinhtranghn(sc.nextInt());
		if (rControllers.Reg(objOject)) {
			System.out.println("Ban da dang ki thanh cong");
		} else {
			System.out.println("Dang ki that bai vui long kiem tra thai");
		}
	}
}
